package socket;

/**
 * @author huyong
 * @version 1.0.0
 * @description
 * @date 2015/5/26 14:30
 */
public class SendSockets{
	public static void sendSocket(String url, int port, byte[] request) {
		if(null == InitSocket.map.get("done")){
			InitSocket.init(url, port);
		}
		try {
			InitSocket.os.write(request);
			InitSocket.os.flush();
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
}
